Platform Explorer / Nuxeo Platform 2021.64

Component org.nuxeo.ecm.platform.routing.dm.operation.chains

Resolution Order

771
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<component name="org.nuxeo.ecm.platform.routing.dm.operation.chains"
  version="1.0">
  <!-- @deprecated since 5.9.2 - Use only routes of type 'graph' -->
  <extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent"
    point="chains">

    <chain id="simpleTask">
      <operation id="Context.FetchDocument" />
      <operation id="Workflow.CreateRoutingTask">
        <param type="string" name="accept operation chain">
          setTaskDone
        </param>
        <param type="string" name="reject operation chain">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
          <property key="nt:directive">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param type="boolean" name="rollbackGlobalOnError">false</param>
        <param type="string" name="id">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="followLifeCycleTransitionTask">
      <operation id="Context.FetchDocument" />
      <operation id="Workflow.CreateRoutingTask">
        <param type="string" name="accept operation chain">
          followLifeCycleTransition
        </param>
        <param type="string" name="reject operation chain">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param type="boolean" name="rollbackGlobalOnError">false</param>
        <param type="string" name="id">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="publishTask">
      <operation id="Context.FetchDocument" />
      <operation id="Workflow.CreateRoutingTask">
        <param type="string" name="accept operation chain">
          publishDocument
        </param>
        <param type="string" name="reject operation chain">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param type="boolean" name="rollbackGlobalOnError">false</param>
        <param type="string" name="id">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="conditionalTask">
      <operation id="Context.FetchDocument" />
      <operation id="Workflow.CreateRoutingTask">
        <param type="string" name="accept operation chain">
          evaluateCondition
        </param>
        <param type="string" name="reject operation chain">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param type="boolean" name="rollbackGlobalOnError">false</param>
        <param type="string" name="id">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="setTaskDone">
      <operation id="Document.Routing.SetRunningStepFromTask">
        <param type="boolean" name="mappingComments">true</param>
      </operation>
      <operation id="Document.Routing.Resume.Step" />
    </chain>

    <chain id="undoRunningTask">
      <operation id="Workflow.RemoveRoutingTask" />
      <operation id="Document.Routing.BackToReady" />
    </chain>

    <chain id="followLifeCycleTransition">
      <operation id="Context.FetchDocument" />
      <operation id="Document.Routing.SetRunningStepFromTask" />
      <operation id="Document.FollowLifecycleTransition">
        <param type="string" name="value">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
        </param>
      </operation>

      <operation id="Document.Routing.Resume.Step" />
    </chain>

    <chain id="publishDocument">
      <operation id="Context.FetchDocument" />
      <operation id="Document.Routing.SetRunningStepFromTask" />
      <operation id="Document.PublishToSection">
        <param type="string" name="target">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
        </param>
      </operation>
      <operation id="Document.Routing.Resume.Step" />
    </chain>

    <chain id="evaluateCondition">
      <operation id="Context.FetchDocument" />
      <operation id="Document.Routing.SetRunningStepFromTask" />
      <operation id="Document.Routing.EvaluateCondition">
        <param type="string" name="subject">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:subject")
        </param>
        <param type="string" name="operator">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:operator")
        </param>
        <param type="string" name="value">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:value")
        </param>
      </operation>
      <operation id="Update.NextStep.ConditionalFolder">
        <param type="string" name="nextStepPos">expr:Context['nextStepPos']
        </param>
      </operation>
      <operation id="Document.Routing.Resume.Step" />
    </chain>

    <chain id="sendTaskCreatedNotificationMail">
      <operation id="Notification.SendMail">
        <param type="string" name="from">Administrator@nuxeo.com</param>
        <param type="string" name="message">template:routingTaskAssigned
        </param>
        <param type="string" name="subject">expr:Context["document.routing.step"].getDocument().getPropertyValue("dc:title")
        </param>
        <param type="stringlist" name="to">expr:Fn.getEmails(Context["document.routing.task.actors"])
        </param>
        <param type="boolean" name="HTML">false</param>
      </operation>
    </chain>
  </extension>
</component>